Learning Python Testing by Arbuckle Daniel

Learning Python Testing by Arbuckle Daniel

Author:Arbuckle, Daniel
Language: eng
Format: epub, azw3
Publisher: Packt Publishing
Published: 2014-11-25T05:00:00+00:00


The assertIn and assertNotIn methods

The assertIn method is used for checking container objects such as dictionaries, tuples, lists, and sets. If the first parameter is contained in the second, the assertion passes. If not, the assertion fails. The assertNotIn method performs the inverse check.

The assertIsInstance and assertNotIsInstance methods

The assertIsInstance method checks whether the object passed as the first parameter is an instance of the class passed as the second parameter. The assertNotIsInstance method performs the opposite check, ensuring that the object is not an instance of the class.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.